<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<html>
<jsp:include page="../head.jsp"></jsp:include>
<body>
<jsp:include page="Left.jsp"></jsp:include>
<form id='fmTbProject'  action='TbProjectServlet' method='post'>
 <input type="hidden" name="method" id="method" value="${sessionScope.tbProject.projectId==null?'add':'edit'}" />
 <input type='hidden' name='projectId' id='projectId' value='${sessionScope.tbProject.projectId }' />
<table>
<tr><td colspan='2'></td></tr>
<tr>
    <td>项目编号</td>
    <td><input type='text' name='projectCode' id='projectCode' value='${sessionScope.tbProject.projectCode }' /></td>
</tr>
<tr>
    <td>项目名称</td>
    <td><input type='text' name='projectName' id='projectName' value='${sessionScope.tbProject.projectName }' /></td>
</tr>
<tr>
    <td>项目开始时间</td>
    <td><input type='text' name='projectStartTime' id='projectStartTime' class="Wdate" size="20" readonly onclick="WdatePicker({el:this,dateFmt:'yyyy-MM-dd'})" value='${sessionScope.tbProject.projectStartTime }' /></td>
</tr>
<tr>
    <td>项目结束(完工)时间</td>
    <td><input type='text' name='projectEndTime' id='projectEndTime' class="Wdate" size="20" readonly onclick="WdatePicker({el:this,dateFmt:'yyyy-MM-dd'})" value='${sessionScope.tbProject.projectEndTime }' /></td>
</tr>
<tr>
    <td>项目验收时间</td>
    <td><input type='text' name='projectAcceptanceTime' id='projectAcceptanceTime' class="Wdate" size="20" readonly onclick="WdatePicker({el:this,dateFmt:'yyyy-MM-dd'})" value='${sessionScope.tbProject.projectAcceptanceTime }' /></td>
</tr>
<tr>
    <td>对应合同编号</td>
    <td>
    <div>
    <select name='contractCode' id='contractCode' >
    <option value='-1'>无</option>
	<c:forEach items="${sessionScope.contractList}" var="tbContract" varStatus="status">
		<option value="${tbContract.contractCode }" ${sessionScope.tbProject.contractCode== tbContract.contractCode?'selected':''}>${tbContract.contractCode }</option>
	</c:forEach>
</select>
</div>
</tr>
<tr>
    <td>项目负责人</td>
    <td><input type='text' name='projectManager' id='projectManager' value='${sessionScope.tbProject.projectManager }' /></td>
</tr>
<tr>
    <td>临时项目组编号</td>
    <td>
    <div>
    <select name='tempProjectGroupCode' id='tempProjectGroupCode' >
    <option value='-1'>无</option>
	<c:forEach items="${sessionScope.tempProjectGroupList}" var="tbProjectGroup" varStatus="status">
		<option value="${tbProjectGroup.tempProjectGroupCode }" ${sessionScope.tbProject.tempProjectGroupCode== tbProjectGroup.tempProjectGroupCode?'selected':''}>${tbProjectGroup.tempProjectGroupCode}</option>
	</c:forEach>
</select>
</div>
</tr>
<tr>
    <td align="center" colspan='2' ><input type="submit" name="btsubmit" id="btsubmit" value="${sessionScope.tbProject.projectId==null?'添加':'修改'}" /><input type='reset' value='重置' /><input type='button' value='返回' onclick='history.go(-1);' /></td>
</tr></table>
</form><jsp:include page="../foot.jsp"></jsp:include>
</body>
</html>